package com.smc.action.message;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import com.opensymphony.xwork2.ActionSupport;
import com.smc.domain.model.Message;
import com.smc.server.MessageService;


public class AbstractMessageAction extends ActionSupport implements ServletRequestAware, ServletResponseAware{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5244053083963334148L;
	/**
	 * 表现层Request对象 
	 */
	protected HttpServletRequest request ;
	/**
	 * 表现层Response对象
	 */
	protected HttpServletResponse response ;
	
	protected MessageService messageService ;
	
	protected Message message ;
	
	protected List<Message> messageList ;
	
	public void setServletRequest(HttpServletRequest arg0) {
		this.request = arg0;
	}

	public void setServletResponse(HttpServletResponse arg0) {
		this.response = arg0 ;
	}

	public MessageService getMessageService() {
		return messageService;
	}

	public void setMessageService(MessageService messageService) {
		this.messageService = messageService;
	}

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public List<Message> getMessageList() {
		return messageList;
	}

	public void setMessageList(List<Message> messageList) {
		this.messageList = messageList;
	}
	
}
